package com.xiaohu.myspace.database.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * OptionInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OPTION_INFO", catalog = "myspace")
public class OptionInfo extends BaseEntity {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private Integer optionId;
	private Integer optionCode;
	private String optionName;

	// Constructors

	/** default constructor */
	public OptionInfo() {
	}

	/** full constructor */
	public OptionInfo(Integer optionId, Integer optionCode, String optionName) {
		this.optionId = optionId;
		this.optionCode = optionCode;
		this.optionName = optionName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "option_id", nullable = false,unique=true)
	public Integer getOptionId() {
		return this.optionId;
	}

	public void setOptionId(Integer optionId) {
		this.optionId = optionId;
	}

	@Column(name = "option_code", nullable = false)
	public Integer getOptionCode() {
		return this.optionCode;
	}

	public void setOptionCode(Integer optionCode) {
		this.optionCode = optionCode;
	}

	@Column(name = "option_name", nullable = false, length = 10)
	public String getOptionName() {
		return this.optionName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

}